package org.example.model;

/**
 * @BelongsProject: Dynamic-relationship-binding
 * @BelongsPackage: org.example.model
 * @Author: dengxiyan
 * @CreateTime: 2025/07/04  10:49
 * @Description: TODO
 * @Version: 1.0
 */
import javax.persistence.Entity;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Entity
@Data
@EqualsAndHashCode(callSuper = true)
public class Teacher extends BaseEntity {
    private String name;
    private String employeeId;
    @Transient
    @JsonIgnoreProperties("supervisor")
    List<Student> students;
    @Transient
    List<Course> courses;
}
